package com.zbkj.crmeb.marketing.response;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zbkj.crmeb.store.response.StoreProductResponse;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="StoreCouponInfoResponse对象", description="优惠券详情")
public class StoreCouponInfoResponse implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "优惠券表ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    @ApiModelProperty(value = "商户号")
    private Integer merId;

    @ApiModelProperty(value = "优惠券名称")
    private String name;

    @ApiModelProperty(value = "是否隐藏（0：否，1：是）")
    private Boolean status;

    @ApiModelProperty(value = "使用类型 1 全场通用, 2 商品券, 3 品类券")
    private Integer useType;

    @ApiModelProperty(value = "json对象: 分类, 品牌, 发货地, 季节")
    private String primaryKey;
    
    @ApiModelProperty(value = "兑换的优惠券面值")
    private BigDecimal money;

    @ApiModelProperty(value = "最低消费，0代表不限制")
    private BigDecimal minPrice;

    @ApiModelProperty(value = "发放总数")
    private Integer total;

    @ApiModelProperty(value = "剩余数量")
    private Integer lastTotal;
    
    @ApiModelProperty(value = "已使用数量")
    private Integer readTotal;

    @ApiModelProperty(value = "可领取开始时间")
    private Date receiveStartTime;

    @ApiModelProperty(value = "可领取结束时间")
    private Date receiveEndTime;

    @ApiModelProperty(value = "是否固定使用时间, 默认0 否， 1是")
    private Boolean isFixedTime;

    @ApiModelProperty(value = "可使用时间范围 开始时间")
    private Date useStartTime;

    @ApiModelProperty(value = "可使用时间范围 结束时间")
    private Date useEndTime;

    @ApiModelProperty(value = "有效天数")
    private Integer day;
    
    @ApiModelProperty(value = "领取后几天生效")
    private Integer lastDay;
    
    @ApiModelProperty(value = "限量张数, 默认0不限量")
    private Integer limitTotal;
    
    @ApiModelProperty(value = "优惠券类型 1 手动领取, 2 自动发放,3会员按月自动发放,4成为会员立即到账")
    private Integer type;
    
    @ApiModelProperty(value = "适用人群: 1 所有 2 无订单用户 3 新用户,4会员用户")
    private Integer crowd;

    @ApiModelProperty(value = "分群id")
    private Integer featureId;
    
    @ApiModelProperty(value = "标识")
    private String tag;
    
    @ApiModelProperty(value = "说明")
    private String remark;
    
    @ApiModelProperty(value = "须知")
    private String notice;

    @ApiModelProperty(value = "是否删除 状态（0：否，1：是）")
    private Boolean isDel;
    
    @ApiModelProperty(value = "商品id列表")
    private List<Integer> productIds;
    
    @ApiModelProperty(value = "商品列表")
    private List<StoreProductResponse> products;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "发放时间类型1固定时间，2按月发放")
    private Integer releaseType;

    @ApiModelProperty(value = "按月发放日期")
    private Integer releaseDate;
    
}
